Skip to content

chore: update gRPC stubs #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

fernandezcuesta
Copy link
Contributor

Description of your changes

The following error prompts when running hatch run generate:protoc:

runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.0 is exactly one major version older than the runtime version 6.30.2 at crossplane/function/proto/v1beta1/run_function.proto. Please update the gencode to avoid compatibility violations in the next runtime release.

Apparently when renovatebot opened a PR with a bump up on protobuf version,
the major version change violated the constraint with grpcio-tools, which
has the following dependency:

Collecting protobuf<6.0dev,>=5.26.1 (from grpcio-tools==1.71.0)

This makes incompatible to have different versions of protobuf for the build
venv and the generate one.

Fixes #

I have:

Functions depending on function-sdk-python 0.6.0 are giving a segmentation fault.
When (re)running the tests for this module, the following is shown:

```
runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.0 is exactly one major version older than the runtime version 6.30.2 at crossplane/function/proto/v1beta1/run_function.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
```

Apparently when renovatebot opened a PR with a bump up on `protobuf` version,
the major version change violated the constraint with `grpcio-tools`, which
has the following dependency:

```
Collecting protobuf<6.0dev,>=5.26.1 (from grpcio-tools==1.71.0)
```

This makes incompatible to have different versions of protobuf for the `build`
venv and the `generate` one.

Signed-off-by: Jesús Fernández <[email protected]>
@fernandezcuesta fernandezcuesta marked this pull request as ready for review April 10, 2025 13:16
@bobh66 bobh66 merged commit 57df02a into crossplane:main Apr 23, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants